<?php
include("inc/global.inc");
include("inc/key.php");
include("inc/page.php");
$url="prolist.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=16;

$rs=@mysql_query("select id,hot_id,hot_name from hot_product where id='".$_GET['id']."'");
$row=@mysql_fetch_array($rs);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE><?=$row[hot_name]?>批发-<?=$row[hot_name]?>代理-<?=$row[hot_name]?>加盟-三帝贸易网批发市场。</title>
<META content="<?=$row[hot_name]?>批发，批发<?=$row[hot_name]?>产品，三帝批发网是目前最大的产品信息展示和批发平台，我们的宗旨：让您少花钱，采购产品更加安全可靠。" name="description">
<META content="<?=$row[hot_name]?>批发，批发<?=$row[hot_name]?>产品，批发市场，三帝批发市场，产品批发" name="keywords">
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="/css/body.css" type="text/css" rel="stylesheet">
<link href="/css/index.css" rel="stylesheet" type="text/css" />
<LINK href="/css/imglist.css" type="text/css" rel="stylesheet">
<LINK href="/css/main.css" type="text/css" rel="stylesheet">
<LINK href="/css/foot.css" type="text/css" rel="stylesheet">
</HEAD>
<BODY>
<?php include("inc/top.php");?>
<div id="Nav" class="topside6">
	<span><a href="/help">帮助中心</a></span>
	<a href="/">首页</a> >> 批发<?=$row[hot_name]?>
	<div style="clear:both"></div>
</div>
<div class="w960 topside20 downside20 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script></div>
<DIV class=BoxDiv>
 <div class="right1">
  <DIV class=ShowPhotos>
  <UL class=overflow>
<?php 
$sqls="  (p_title like '%$row[hot_name]%')";
$h_rs=@mysql_query("select id,picture,p_title from hot_pro_list  where ".$sqls."  order by id desc limit ".($thepage-1)*$maxpage.",$maxpage");
while($h_row=@mysql_fetch_array($h_rs)){
?>
    <LI>
      <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="150" align="center" class="photosB"><A href="/pf/<?=$h_row[id]?>.html" target="_blank"><?php if($h_row[picture]){?><IMG src="http://img.sandib2b.cn/<?=$h_row[picture]?>" alt="<?=$h_row[p_title]?>" width="140" height="140"  border="0"><?php }else{?><IMG src="/images/InfoPic.gif" border="0"><?php }?></A></td>
        </tr>
        <tr>
          <td align="center" height="24"><A href="/pf/<?=$h_row[id]?>.html" target="_blank"><?=mb_substr(keyword($h_row[p_title]),0,12,'utf-8')?></a></td>
        </tr>
        <tr>
          <td height="24" align="center"><?php if($h_row[pifa_price]){?>批发价:<span class='price'>￥<?=$h_row[pifa_price]?></span> 元<?php }?></td>
        </tr>
        <tr>
            <td align="center" valign="top">
			<A href="/pf/<?=$h_row[id]?>.html" target="_blank"><img src="/images/buy_icon.gif" border="0" /></A>&nbsp;<A title="三帝批发市场"  href="#" style="CURSOR: hand" onClick="javascript:window.external.AddFavorite('http://pifa.sandib2b.cn/pf/<?=$h_row[id]?>.html','<?=keyword($h_row[p_title])?>')"><img src="/images/fav_icon.gif" width="45" height="21"  border="0" /></A></td>
        </tr>
      </table>
    </LI>
<?php }
$pg_rs=@mysql_query("select count(id) from hot_pro_list  where  ".$sqls);
$totalrecord=@mysql_result($pg_rs,0);
@mysql_free_result($pg_rs);
$totalpage=ceil($totalrecord/$maxpage);
?>
</UL>
  <DIV class=ClearDiv></DIV>
<div class="onl"></div>
</DIV>

  <div class="page">
    <div class="pageleft">
      <ul>
        <?php pifapages($thepage,$totalpage,$maxpage,5,$_GET[type_name],$_GET[id]);?>
      </ul>
    </div>
    <div class="pageright">
<form name="pageform" method="post" action="" onSubmit="return onCheckPage()"> 
共<?=$totalpage?>页　到
<input type="text" name="page" class="input-txt" size="5" maxlength="5">页
<input type="submit" value="确定" class="but">
</form>
<script language="javascript"> 
function onCheckPage(){
var page = parseInt(document.pageform.page.value); 
if(isNaN(page)){
alert("请输入数字(1,<?=$totalpage?>)");
return false; 
}
if(page<=0){
page=1; 
}
if(page><?=$totalpage?>){
page=<?=$totalpage?>;
}
if(page>1){
document.pageform.action = "/pftype/<?=$_GET[type_name]?>-cid<?=$_GET[id]?>-pid"+page+".html"; 
}else{
document.pageform.action = "/pftype/<?=$_GET[type_name]?>-cid<?=$_GET[id]?>-pid1.html"; 
}
return true;
}
  </script>
    </div>
    <div class="onl"></div>
  </div>
 </DIV>
  <div id="layoutL">
<div id="ServiceL" align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 160x600, 创建于 11-3-13 */
google_ad_slot = "6251201312";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></div>
<DIV class=ClearDiv></DIV>
</DIV>
<div class="w960 topside20 downside20 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script></div>

<?php include("inc/foot.php");?>
</BODY>
</HTML>

<script type="text/javascript">/*120*270，创建于2010-12-18*/ var cpro_id = 'u319758';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>

